﻿/*
 * Change Logs:
 * Date           Author       Notes
 * 2020-12-17     wangwenkai       the first version
 */
#ifndef APPLICATIONS_APP_COMMON_H_
#define APPLICATIONS_APP_COMMON_H_

#include <stdio.h>
#include <time.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <fcntl.h>
#include <malloc.h>
#include <limits.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <math.h>
#include <sys/time.h>
#include <pthread.h>

#define SIZE_1KB 0x00000400
#define SIZE_2KB 0x00000800
#define SIZE_4KB 0x00001000
#define SIZE_8KB 0x00002000
#define SIZE_16KB 0x00004000
#define SIZE_32KB 0x00008000
#define SIZE_64KB 0x00010000
#define SIZE_128KB 0x00020000
#define SIZE_256KB 0x00040000
#define SIZE_512KB 0x00080000

#define PRINT_DEBUG(fmt,args...) do{printf("FILE:[%s]--[%s]       LINE:[%d]:"fmt,__FILE__,__FUNCTION__,__LINE__,##args);}while(0);

#define OK (0)
#define FALSE 0
#define TRUE 1
typedef int BOOL;

#ifndef ERROR
#define ERROR (-1)
#endif

typedef unsigned int UINT32;
typedef unsigned short UINT16;
typedef unsigned char UINT8;
typedef char CHAR;
typedef int INT32;

#endif /* APPLICATIONS_APP_COMMON_H_ */
